<?php

namespace Home\Model;

use Think\Model;

class SqldataModel{
    public function article($field,$where){
      $field = $field;
      $where = $where;
      $first_name=M()->query("select ".$field." from __PREFIX__article_xueli ".$where);
      return $first_name;
    }

    public function region(){
      $region_name=M()->query("select * from __PREFIX__region2 where `level` = 1 and `display` = 1");
      return $region_name;
    }


}
